home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Games / panda-star.swf / scripts / frame_3 / DoAction.as
Text File  |  2011-10-17  |  14KB  |  351 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 527 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = 749 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") != 829)
  9.    {
  10.       if(eval("\x01") != 908)
  11.       {
  12.          if(eval("\x01") != 267)
  13.          {
  14.             if(eval("\x01") != 536)
  15.             {
  16.                if(eval("\x01") == 775)
  17.                {
  18.                   set("\x01",eval("\x01") - 55);
  19.                   break;
  20.                }
  21.                if(eval("\x01") == 944)
  22.                {
  23.                   set("\x01",eval("\x01") - 32);
  24.                   continue;
  25.                   continue;
  26.                }
  27.                if(eval("\x01") == 490)
  28.                {
  29.                   set("\x01",eval("\x01") + 369);
  30.                   ┬º┬ºpush("\x0f");
  31.                   continue;
  32.                }
  33.                if(eval("\x01") == 428)
  34.                {
  35.                   set("\x01",eval("\x01") - 72);
  36.                   ┬º┬ºpush(!function ┬º\x01\x02┬º()
  37.                   {
  38.                      return 527 % 511 * 5;
  39.                   });
  40.                   continue;
  41.                }
  42.                if(eval("\x01") == 3)
  43.                {
  44.                   set("\x01",eval("\x01") + 487);
  45.                   var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  46.                   {
  47.                      return 527 % 511 * 5;
  48.                   };
  49.                   continue;
  50.                }
  51.                if(eval("\x01") == 720)
  52.                {
  53.                   set("\x01",eval("\x01") - 184);
  54.                   continue;
  55.                   continue;
  56.                }
  57.                if(eval("\x01") == 889)
  58.                {
  59.                   set("\x01",eval("\x01") - 114);
  60.                   if(function ┬º\x01\x02┬º()
  61.                   {
  62.                      return 527 % 511 * 5;
  63.                   })
  64.                   {
  65.                      set("\x01",eval("\x01") - 55);
  66.                   }
  67.                   continue;
  68.                }
  69.             }
  70.             set("\x01",eval("\x01") + 372);
  71.             ┬º┬ºpush(true);
  72.             continue;
  73.             if(eval("\x01") == 970)
  74.             {
  75.                set("\x01",eval("\x01") - 26);
  76.                break;
  77.             }
  78.          }
  79.          set("\x01",eval("\x01") + 269);
  80.          continue;
  81.          if(eval("\x01") != 572)
  82.          {
  83.             if(eval("\x01") != 912)
  84.             {
  85.                if(eval("\x01") != 859)
  86.                {
  87.                   if(eval("\x01") != 356)
  88.                   {
  89.                      if(eval("\x01") != 46)
  90.                      {
  91.                         if(eval("\x01") == 126)
  92.                         {
  93.                            set("\x01",eval("\x01") + 785);
  94.                            stop();
  95.                            black._y = 225;
  96.                            select = 1;
  97.                            dkey = false;
  98.                            ukey = false;
  99.                            ekey = false;
  100.                            skey = false;
  101.                            mkey = false;
  102.                            hit = false;
  103.                            board = false;
  104.                            iArray = new Array(startb,achieveb,scoreb,gamesb,credb);
  105.                            sArray = new Array();
  106.                            sCounter = 0;
  107.                            if(sd == undefined)
  108.                            {
  109.                               sd = 60;
  110.                            }
  111.                            leaves1.swapDepths(100);
  112.                            leaves2.swapDepths(101);
  113.                            logo.swapDepths(102);
  114.                            leaves1._x = 40;
  115.                            leaves2._x = 410;
  116.                            leaves1._y = leaves2._y = 387;
  117.                            i = 0;
  118.                            while(i < 4)
  119.                            {
  120.                               iArray[i].hit = false;
  121.                               i++;
  122.                            }
  123.                            if(s == undefined)
  124.                            {
  125.                               s = 1;
  126.                               ad = 1010;
  127.                               adArray = new Array();
  128.                               moveSound = new Sound();
  129.                               moveSound.attachSound("claves");
  130.                               tadaSound = new Sound(sound5);
  131.                               tadaSound.attachSound("tada");
  132.                               tadaSound.setVolume(300);
  133.                               gong = new Sound(sound6);
  134.                               gong.attachSound("gong");
  135.                               gong.setVolume(70);
  136.                               clickSound = new Sound(sound1);
  137.                               clickSound.attachSound("bell");
  138.                               clickSound.setVolume(40);
  139.                               music = new Sound(sound4);
  140.                               music.attachSound("music");
  141.                               music.setVolume(90);
  142.                               music.start(0,999);
  143.                            }
  144.                            _root.onEnterFrame = function()
  145.                            {
  146.                               AchievementFunction();
  147.                               StarAction();
  148.                               if(!board)
  149.                               {
  150.                                  if(Key.isDown(40) || Key.isDown(83))
  151.                                  {
  152.                                     if(!dkey)
  153.                                     {
  154.                                        if(select < 5)
  155.                                        {
  156.                                           select++;
  157.                                           moveSound.start();
  158.                                        }
  159.                                        dkey = true;
  160.                                     }
  161.                                  }
  162.                                  else
  163.                                  {
  164.                                     dkey = false;
  165.                                  }
  166.                                  if(Key.isDown(38) || Key.isDown(87))
  167.                                  {
  168.                                     if(!ukey)
  169.                                     {
  170.                                        if(select > 1)
  171.                                        {
  172.                                           select--;
  173.                                           moveSound.start();
  174.                                        }
  175.                                        ukey = true;
  176.                                     }
  177.                                  }
  178.                                  else
  179.                                  {
  180.                                     ukey = false;
  181.                                  }
  182.                                  if(Key.isDown(13))
  183.                                  {
  184.                                     if(!ekey)
  185.                                     {
  186.                                        Select();
  187.                                        ekey = true;
  188.                                     }
  189.                                  }
  190.                                  else
  191.                                  {
  192.                                     ekey = false;
  193.                                  }
  194.                                  if(Key.isDown(32))
  195.                                  {
  196.                                     if(!skey)
  197.                                     {
  198.                                        Select();
  199.                                        skey = true;
  200.                                     }
  201.                                  }
  202.                                  else
  203.                                  {
  204.                                     skey = false;
  205.                                  }
  206.                                  hit = false;
  207.                                  i = 0;
  208.                                  while(i < 5)
  209.                                  {
  210.                                     t = iArray[i];
  211.                                     if(t.hitTest(_xmouse,_ymouse,true))
  212.                                     {
  213.                                        hit = true;
  214.                                        pie = false;
  215.                                        if(!t.hit && select != i + 1)
  216.                                        {
  217.                                           t.hit = true;
  218.                                           moveSound.start();
  219.                                        }
  220.                                        k = 0;
  221.                                        while(k < 5)
  222.                                        {
  223.                                           p = iArray[k];
  224.                                           if(k != i && p.hitTest(_xmouse,_ymouse,true))
  225.                                           {
  226.                                              pie = true;
  227.                                           }
  228.                                           k++;
  229.                                        }
  230.                                        select = i + 1;
  231.                                     }
  232.                                     else
  233.                                     {
  234.                                        t.hit = false;
  235.                                     }
  236.                                     if(select == i + 1)
  237.                                     {
  238.                                        if(t._xscale < 125)
  239.                                        {
  240.                                           t._xscale += (130 - t._xscale) / 5;
  241.                                        }
  242.                                        t._yscale = t._xscale;
  243.                                     }
  244.                                     else
  245.                                     {
  246.                                        if(t._xscale > 100)
  247.                                        {
  248.                                           t._xscale += (95 - t._xscale) / 5;
  249.                                        }
  250.                                        else
  251.                                        {
  252.                                           t._xscale = 100;
  253.                                        }
  254.                                        t._yscale = t._xscale;
  255.                                     }
  256.                                     t._alpha = 75 + (t._xscale - 100);
  257.                                     i++;
  258.                                  }
  259.                                  pandas._y = iArray[select - 1]._y;
  260.                                  if(Key.isDown(77))
  261.                                  {
  262.                                     if(!mkey)
  263.                                     {
  264.                                        mkey = true;
  265.                                        if(moveSound.getVolume() != 0)
  266.                                        {
  267.                                           moveSound.setVolume(0);
  268.                                        }
  269.                                        else
  270.                                        {
  271.                                           moveSound.setVolume(100);
  272.                                        }
  273.                                     }
  274.                                  }
  275.                                  else
  276.                                  {
  277.                                     mkey = false;
  278.                                  }
  279.                               }
  280.                            };
  281.                            _root.onMouseDown = function()
  282.                            {
  283.                               if(hit && !board)
  284.                               {
  285.                                  Select();
  286.                               }
  287.                            };
  288.                            gameData = SharedObject.getLocal("PandaStarData16");
  289.                            if(gameData.data.played == undefined)
  290.                            {
  291.                               gameData.data.played = true;
  292.                               aArray = new Array();
  293.                               i = 0;
  294.                               while(i < 30)
  295.                               {
  296.                                  aArray.push(false);
  297.                                  i++;
  298.                               }
  299.                               gameData.data.a = aArray;
  300.                               gameData.data.extras = new Array(0,0,0,0,0,0,0,0);
  301.                            }
  302.                            gd = gameData.data;
  303.                            aArray = new Array("Baby panda","Young panda","Adult panda","Skilled panda","Master panda","Boost owner","Boost conserver","Boost horder","Boost lover","Boosts are for noobs","What\'s a boost?","Screen jumper","Switcharoo","Teleporter","Teleportationist","Master magician","Hit the roof","Who done it?","Where the games at?","Panda hater","Stupid panda","Suicidal panda","Close call","Sky diver","Falling star","Endangered species","Hit the deck","Neat game","Cool game","I love this game!");
  304.                            break;
  305.                         }
  306.                         if(eval("\x01") == 911)
  307.                         {
  308.                            set("\x01",eval("\x01") - 911);
  309.                            break;
  310.                         }
  311.                      }
  312.                      set("\x01",eval("\x01") + 80);
  313.                      continue;
  314.                   }
  315.                   set("\x01",eval("\x01") - 310);
  316.                   if(function ┬º\x01\x02┬º()
  317.                   {
  318.                      return 527 % 511 * 5;
  319.                   })
  320.                   {
  321.                      set("\x01",eval("\x01") + 80);
  322.                   }
  323.                }
  324.                set("\x01",eval("\x01") - 431);
  325.                ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  326.                {
  327.                   return 527 % 511 * 5;
  328.                }));
  329.                continue;
  330.             }
  331.             set("\x01",eval("\x01") - 909);
  332.             ┬º┬ºpush("\x0f");
  333.             ┬º┬ºpush(1);
  334.          }
  335.       }
  336.       set("\x01",eval("\x01") + 62);
  337.       if(function ┬º\x01\x02┬º()
  338.       {
  339.          return 527 % 511 * 5;
  340.       })
  341.       {
  342.          set("\x01",eval("\x01") - 26);
  343.       }
  344.       continue;
  345.    }
  346.    set("\x01",eval("\x01") + 60);
  347.    ┬º┬ºpush(true);
  348.    continue;
  349.    set("\x01",eval("\x01") + 340);
  350. }
  351.